delete

open fun delete(@NonNull uri: @NonNull Uri, @Nullable selection: @Nullable String, selectionArgs: @Nullable Array<String>): Int(source)

Deletes the file associated with the specified content URI, as returned by getUriForFile(). Notice that this method does not throw an IOException; you must check its return value.

Return

1 if the delete succeeds; otherwise, 0.

Parameters

uri

A content URI for a file, as returned by getUriForFile().

selection

Ignored. Set to null.

selectionArgs

Ignored. Set to null.